//树的高度
$("#jurisdiction .jurisdiction .ztree").css({
	"max-height": $(window).height() - 316
});

//主区域高度
$("#jurisdiction .treeTable .jurisdiction").css({
	"min-height": $(window).height() - 180
});

//头部点击切换
var thisTitleNum,
	thisTitleUrl = ["templates/authority/qxgl/jurisdiction01.html", "templates/authority/qxgl/jurisdiction02.html", "templates/authority/qxgl/jurisdiction03.html", "templates/authority/qxgl/jurisdiction04.html"];
$(".jurisdiction").load(thisTitleUrl[0]);
var lastClick = null;
$(".treeTable ul.thisTitle li").click(function() {
	if(lastClick === $(this).index()) {
		return;
	}
	if(!$(this).hasClass("active")) {
		$(this).addClass("active").siblings().removeClass("active");
		thisTitleNum = $(this).index();
		$(".jurisdiction").load(thisTitleUrl[thisTitleNum]);
	}
	lastClick = $(this).index();
})